import service from '@/utils/request';


//127.0.0.1:19090/system/sysUser/login
//此方法也要暴露
export function loginService(userAccount,password){
    return service({
        url: "/sysUser/login",
        method: "post",
        //携带
        data: { userAccount, password }
    })
}

export function getUserInfoService() {
    return service({
        url: "/sysUser/info",
        method: "get",
    });
}

export function logoutService() {
    return service({
        url: "/sysUser/logout",
        method: "delete",
    });
}